home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / programming / e / powerd0.06 / modules / datatypes / datatypesclass.m < prev    next >
Text File  |  1999-11-30  |  5KB  |  218 lines

  1. #define DATATYPESCLASS 'datatypesclass'
  2.  
  3. MODULE 'exec/io',
  4.        'exec/semaphores',
  5.        'graphics/gfx',
  6.        'graphics/rastport',
  7.        'graphics/view',
  8.        'intuition/cghooks',
  9.        'intuition/screens',
  10.        'utility/tagitem'
  11.  
  12. CONST DTA_Dummy=$80001000,
  13.       DTA_TextAttr=$8000100a,
  14.       DTA_TopVert=$8000100b,
  15.       DTA_VisibleVert=$8000100c,
  16.       DTA_TotalVert=$8000100d,
  17.       DTA_VertUnit=$8000100e,
  18.       DTA_TopHoriz=$8000100f,
  19.       DTA_VisibleHoriz=$80001010,
  20.       DTA_TotalHoriz=$80001011,
  21.       DTA_HorizUnit=$80001012,
  22.       DTA_NodeName=$80001013,
  23.       DTA_Title=$80001014,
  24.       DTA_TriggerMethods=$80001015,
  25.       DTA_Data=$80001016,
  26.       DTA_TextFont=$80001017,
  27.       DTA_Methods=$80001018,
  28.       DTA_PrinterStatus=$80001019,
  29.       DTA_PrinterProc=$8000101a,
  30.       DTA_LayoutProc=$8000101b,
  31.       DTA_Busy=$8000101c,
  32.       DTA_Sync=$8000101d,
  33.       DTA_BaseName=$8000101e,
  34.       DTA_GroupID=$8000101f,
  35.       DTA_ErrorLevel=$80001020,
  36.       DTA_ErrorNumber=$80001021,
  37.       DTA_ErrorString=$80001022,
  38.       DTA_Conductor=$80001023,
  39.       DTA_ControlPanel=$80001024,
  40.       DTA_Immediate=$80001025,
  41.       DTA_Repeat=$80001026,
  42.       DTA_Name=$80001064,
  43.       DTA_SourceType=$80001065,
  44.       DTA_Handle=$80001066,
  45.       DTA_DataType=$80001067,
  46.       DTA_Domain=$80001068,
  47.       DTA_Left=$80001069,
  48.       DTA_Top=$8000106a,
  49.       DTA_Width=$8000106b,
  50.       DTA_Height=$8000106c,
  51.       DTA_ObjName=$8000106d,
  52.       DTA_ObjAuthor=$8000106e,
  53.       DTA_ObjAnnotation=$8000106f,
  54.       DTA_ObjCopyright=$80001070,
  55.       DTA_ObjVersion=$80001071,
  56.       DTA_ObjectID=$80001072,
  57.       DTA_UserData=$80001073,
  58.       DTA_FrameInfo=$80001074,
  59.       DTA_RelRight=$80001075,
  60.       DTA_RelBottom=$80001076,
  61.       DTA_RelWidth=$80001077,
  62.       DTA_RelHeight=$80001078,
  63.       DTA_SelectDomain=$80001079,
  64.       DTA_TotalPVert=$8000107a,
  65.       DTA_TotalPHoriz=$8000107b,
  66.       DTA_NominalVert=$8000107c,
  67.       DTA_NominalHoriz=$8000107d,
  68.       DTA_DestCols=$80001190,
  69.       DTA_DestRows=$80001191,
  70.       DTA_Special=$80001192,  -> data for this tag is unsigned INT
  71.       DTA_RastPort=$80001193,
  72.       DTA_ARexxPortName=$80001194,
  73.       DTST_RAM=1,
  74.       DTST_FILE=2,
  75.       DTST_CLIPBOARD=3,
  76.       DTST_HOTLINK=4
  77.  
  78.  
  79. OBJECT DTSpecialInfo
  80.     Lock:SS,
  81.     Flags:LONG,
  82.     TopVert:LONG,
  83.     VisVert:LONG,
  84.     TotVert:LONG,
  85.     OTopVert:LONG,
  86.     VertUnit:LONG,
  87.     TopHoriz:LONG,
  88.     VisHoriz:LONG,
  89.     TotHoriz:LONG,
  90.     OTopHoriz:LONG,
  91.     HorizUnit:LONG
  92.  
  93. CONST    DTSIF_LAYOUT=1,
  94.         DTSIF_NEWSIZE=2,
  95.         DTSIF_DRAGGING=4,
  96.         DTSIF_DRAGSELECT=8,
  97.         DTSIF_HIGHLIGHT=16,
  98.         DTSIF_PRINTING=$20,
  99.         DTSIF_LAYOUTPROC=$40
  100.  
  101. OBJECT DTMethod
  102.     Label:PTR TO CHAR,
  103.     Command:PTR TO CHAR,
  104.     Method:LONG
  105.  
  106. CONST    DTM_FRAMEBOX=$601,
  107.         DTM_PROCLAYOUT=$602,
  108.         DTM_ASYNCLAYOUT=$603,
  109.         DTM_REMOVEDTOBJECT=$604,
  110.         DTM_SELECT=$605,
  111.         DTM_CLEARSELECTED=$606,
  112.         DTM_COPY=$607,
  113.         DTM_PRINT=$608,
  114.         DTM_ABORTPRINT=$609,
  115.         DTM_NEWMEMBER=$610,
  116.         DTM_DISPOSEMEMBER=$611,
  117.         DTM_GOTO=$630,
  118.         DTM_TRIGGER=$631,
  119.         DTM_OBTAINDRAWINFO=$640,
  120.         DTM_DRAW=$641,
  121.         DTM_RELEASEDRAWINFO=$642,
  122.         DTM_WRITE=$650
  123.  
  124. OBJECT FrameInfo
  125.     PropertyFlags:LONG,
  126.     Resolution:TPoint,
  127.     RedBits:CHAR,
  128.     GreenBits:CHAR,
  129.     BlueBits:CHAR,            // powerd automaticaly inserts pad byte
  130.     Width:LONG,
  131.     Height:LONG,
  132.     Depth:LONG,
  133.     Screen:PTR TO Screen,
  134.     Colormap:PTR TO ColorMap,
  135.     Flags:LONG
  136.  
  137. CONST    FIF_SCALABLE=1,
  138.         FIF_SCROLLABLE=2,
  139.         FIF_REMAPPABLE=4
  140.  
  141. OBJECT DTGeneral
  142.     MethodID:LONG,
  143.     GInfo:PTR TO GadgetInfo
  144.  
  145. OBJECT DTSelect
  146.     MethodID:LONG,
  147.     GInfo:PTR TO GadgetInfo,
  148.     Select:Rectangle
  149.  
  150. OBJECT DTFrameBox
  151.     MethodID:LONG,
  152.     GInfo:PTR TO GadgetInfo,
  153.     ContentsInfo:PTR TO FrameInfo,
  154.     FrameInfo:PTR TO FrameInfo,
  155.     SizeFrameInfo:LONG,
  156.     FrameFlags:LONG
  157.  
  158. CONST    FRAMEF_SPECIFY=1
  159.  
  160. OBJECT DTGoTo
  161.     MethodID:LONG,
  162.     GInfo:PTR TO GadgetInfo,
  163.     NodeName:PTR TO CHAR,
  164.     AttrList:PTR TO TagItem
  165.  
  166. OBJECT DTTrigger
  167.     MethodID:LONG,
  168.     GInfo:PTR TO GadgetInfo,
  169.     Function:LONG,
  170.     Data:LONG
  171.  
  172. CONST    STM_PAUSE=1,
  173.         STM_PLAY=2,
  174.         STM_CONTENTS=3,
  175.         STM_INDEX=4,
  176.         STM_RETRACE=5,
  177.         STM_BROWSE_PREV=6,
  178.         STM_BROWSE_NEXT=7,
  179.         STM_NEXT_FIELD=8,
  180.         STM_PREV_FIELD=9,
  181.         STM_ACTIVATE_FIELD=10,
  182.         STM_COMMAND=11,
  183.         STM_REWIND=12,
  184.         STM_FASTFORWARD=13,
  185.         STM_STOP=14,
  186.         STM_RESUME=15,
  187.         STM_LOCATE=16
  188.  
  189. -> Um, this object was missing
  190. OBJECT dtprint
  191.     MethodID:LONG,
  192.     GInfo:PTR TO GadgetInfo,
  193. -> a) next is unioned with "iodrp:PTR TO iodrpreq"
  194. -> b) next is unioned with "iopc:PTR TO ioprtcmdreq"
  195.     IOS|IOPC|IODRP:PTR TO IOStd,
  196.     AttrList:PTR TO TagItem
  197.  
  198. OBJECT DTDraw
  199.     MethodID:LONG,
  200.     RPort:PTR TO RastPort,
  201.     Left:LONG,
  202.     Top:LONG,
  203.     Width:LONG,
  204.     Height:LONG,
  205.     TopHoriz:LONG,
  206.     TopVert:LONG,
  207.     AttrList:PTR TO TagItem
  208.  
  209. OBJECT DTWrite
  210.     MethodID:LONG,
  211.     GInfo:PTR TO GadgetInfo,
  212.     FileHandle:LONG,
  213.     Mode:LONG,
  214.     AttrList:PTR TO TagItem
  215.  
  216. CONST    DTWM_IFF=0,
  217.         DTWM_RAW=1
  218.